import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

import HomeView from "@/layout/index.vue"

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "home",
    component: HomeView,
    children: [
      {
        path: "home",
        name: "home",
        component: () =>
          import("@/views/home/index.vue"),
      },
      {
        path: "more",
        name: "more",
        component: () =>
          import("@/views/more/index.vue"),
        
      }
    ]
  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router;
